package com.zhuiyun.project.api.imageFIle.service.impl;

import com.zhuiyun.project.api.imageFIle.entity.ImageFile;
import com.zhuiyun.project.api.imageFIle.mapper.ImageFileMapper;
import com.zhuiyun.project.api.imageFIle.service.ImageFIleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName ImageFileImpl
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/8/15 8:37
 **/
@Service
public class ImageFileImpl implements ImageFIleService {

    @Resource
    ImageFileMapper imageFileMapper;

    /**
     * @Author 杨友朋
     * @Description TODO 添加图片信息
     * @Date 2023/8/15 21:03
     * @Return
     * @param
     */
    @Override
    public boolean addFile(ImageFile imageFile) {
        int i = imageFileMapper.insert(imageFile);
        if(i>0){
            return true;
        }
        return false;
    }
}
